package com.stu.student_back_end.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stu.student_back_end.common.Result;
import com.stu.student_back_end.controller.dto.CountDTO;
import com.stu.student_back_end.controller.dto.PageDTO;
import com.stu.student_back_end.entity.TblBuilding;


/**
 * 楼栋service层接口
 */

public interface ITblBuildingService extends IService<TblBuilding> {

    //分页查询
    Page<TblBuilding> queryBuildingPage(PageDTO pageVo);

    //保存楼栋信息和在account表添加管理楼栋
    Result saveBuildingAndAccount(TblBuilding building);

    //修改楼栋信息和account表中build字段的信息
    Result updateBuildingAndAccount(TblBuilding tblBuilding);

    //修改楼栋信息和account表中build字段的信息
    Result delByIdBuildingAndAccount(TblBuilding building);

    //查询楼栋数
    CountDTO queryBuildingCount();
}
